![]() |
HitTestThemeScrollBarArrows |
||||
Header: | Appearance.h | Carbon status: | Supported | |
Returns whether the user clicked upon the specified scroll bar’s arrows.
Boolean HitTestThemeScrollBarArrows ( const Rect *scrollBarBounds, ThemeTrackEnableState enableState, ThemeTrackPressState pressState, Boolean isHoriz, Point ptHit, Rect *trackBounds, ControlPartCode *partcode );
A pointer to a structure of type Rect. Before calling HitTestThemeScrollBarArrows, set the rectangle to the boundary of the scroll bar, in local coordinates. Typically, the rectangle you specify is the entire base control rectangle—that is, the value contained in the contrlRect field of the scroll bar’s ControlRecord structure.
A value of type ThemeTrackEnableState. Pass a constant specifying the current state of the scroll bar; see
A value of type ThemeTrackPressState. Pass a constant specifying what is pressed in an active scroll bar or 0 if nothing is pressed; the press state is ignored if the scroll bar is not active. See
A value of type Boolean. Pass true if the scroll bar is horizontal; pass false if it is vertical.
A structure of type Point. Pass the point, specified in local coordinates, where the mouse-down event occurred. Your application may retrieve this value from the where field of the event structure.
A pointer to a structure of type Rect. On return, the rectangle contains the bounds of the track portion of the scroll bar; this rectangle excludes the area containing the scroll bar arrows. Pass NULL if you do not wish to obtain this information.
A pointer to a value of type ControlPartCode. On return, this value specifies the arrow in which the mouse-down event occurred.
A value of type Boolean. If true, the mouse-down event occurred inside the scroll bar arrows; otherwise, false.
Your application may use the HitTestThemeScrollBarArrows function to test whether a given mouse-down event occurred on a scroll bar’s arrows. If not, you may then use the rectangle produced in the trackBounds parameter of HitTestThemeScrollBarArrows as the bounds of the track for the function HitTestThemeTrack, in order to determine whether the mouse-down event occurred in the track part of the scroll bar.
This function is available with Appearance Manager 1.1 and later.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)